import React, {PureComponent} from "react";
import {Route, Switch, Redirect} from 'react-router-dom'
import ContentListComponent from './ContentListComponent'
import AboutComponent from './AboutComponent'
import OpenAPIComponent from './OpenAPIComponent'

class ContentMainComponent extends PureComponent {
    render() {
        return (
            <div>
                <Switch>
                    <Route exact path='/logList' component={ContentListComponent}/>
                    <Route exact path='/about' component={AboutComponent}/>
                    <Route exact path='/openAPI' component={OpenAPIComponent}/>
                    <Redirect to="/logList"/>
                </Switch>
            </div>
        )
    }
}

export default ContentMainComponent